package com.encyclopedia.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author MaLiang
 * @version 1.0
 * @date 2024-04-22 8:57
 * 种植信息
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "plant_cultivation")
public class Cultivation implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * id主键
     */
    @TableId("pc_id")
    private Integer pcId;

    /**
     * 植物信息表id
     */
    @TableField("plant_id")
    private Integer plantId;

    /**
     * 种植季节
     */
    @TableField("suitable_season")
    private String suitableSeason;

    /**
     * 区域
     */
    @TableField("location")
    private String location;

    /**
     * 种植数量
     */
    @TableField("quantity")
    private String quantity;

    /**
     * 预计收获时间
     */
    @TableField("harvest_time")
    private String harvestTime;

    private Environment environment;
    private List<Kind> kinds;

    @Override
    public String toString() {
        return "Cultivation{" +
                "pcId=" + pcId +
                ", plantId=" + plantId +
                ", suitableSeason='" + suitableSeason + '\'' +
                ", location='" + location + '\'' +
                ", quantity='" + quantity + '\'' +
                ", harvestTime='" + harvestTime + '\'' +
                ", environment=" + environment +
                ", kinds=" + kinds +
                '}';
    }
}
